﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace Comisiones.Models
{
    public class TransaccionDAO : DbContext
    {
        public TransaccionDAO() : base("ConexionPrincipalDAO") { }
        public DbSet<TipoTransaccion> tiposTransaccion { get; set; }
        public DbSet<Transaccion> transacciones { get; set; }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<TipoTransaccion>().ToTable("Tipo_Transaccion");
            modelBuilder.Entity<Transaccion>().ToTable("Transaccion");
        }
    }
}